package com.itmg.analyze.jp.model;

import java.io.Serializable;

/**
 *  url参数	getURLPara获得匹配好的url
 * @author xuehaipeng
 * @version 1.0
 * */
public class KakakuSearchParamModel implements Serializable {
	private static final long serialVersionUID = 1L;
	private String Keyword; //想检索的关键字
	private String ResultSet; //mini也如流行的条款想取得的属性medium指定。 mini/medium有关包含的信息，给回扣参数的项参照。*指定没有的情况作为medium被检索
	private String CategoryGroup; //指定检索对象的范畴。*指定没有的情况从全部的范畴被检索。
	private String SortOrder;  //分类排列顺序
	private String HitNum;  //取得的检索结果数
	private String PageNum; //指定想要第页号码几页的结果名单。*指定没有的情况第1页被检索。超过1200件的页指定不能。如果超越1200件指定能的最后页被检索。
	private String Charset; //字符编码
	private String MinPrice; //最低金額
	private String MaxPrice; //最高金額
	public KakakuSearchParamModel() {
		// TODO Auto-generated constructor stub
	}
	public String getKeyword() {
		return Keyword;
	}
	public void setKeyword(String keyword) {
		Keyword = keyword;
	}
	public String getResultSet() {
		return ResultSet;
	}
	public void setResultSet(String resultSet) {
		ResultSet = resultSet;
	}
	public String getCategoryGroup() {
		return CategoryGroup;
	}
	public void setCategoryGroup(String categoryGroup) {
		CategoryGroup = categoryGroup;
	}
	public String getSortOrder() {
		return SortOrder;
	}
	public void setSortOrder(String sortOrder) {
		SortOrder = sortOrder;
	}
	public String getHitNum() {
		return HitNum;
	}
	public void setHitNum(String hitNum) {
		HitNum = hitNum;
	}
	public String getPageNum() {
		return PageNum;
	}
	public void setPageNum(String pageNum) {
		PageNum = pageNum;
	}
	public String getCharset() {
		return Charset;
	}
	public void setCharset(String charset) {
		Charset = charset;
	}
	public String getMinPrice() {
		return MinPrice;
	}
	public void setMinPrice(String minPrice) {
		MinPrice = minPrice;
	}
	public String getMaxPrice() {
		return MaxPrice;
	}
	public void setMaxPrice(String maxPrice) {
		MaxPrice = maxPrice;
	}
	public String getURLPara()
	{
		String url = "";
		if(Keyword != null)
		{
			url = url + "?Keyword="+Keyword;
		}
		if(ResultSet != null)
		{
			url = url + "&ResultSet="+ResultSet;
		}
		if(CategoryGroup != null)
		{
			url = url + "&CategoryGroup="+CategoryGroup;
		}
		if(SortOrder != null)
		{
			url = url + "&SortOrder="+SortOrder;
		}
		if(HitNum != null)
		{
			url = url + "&HitNum="+HitNum;
		}
		if(PageNum != null)
		{
			url = url + "&PageNum="+PageNum;
		}
		if(Charset != null)
		{
			url = url + "&Charset="+Charset;
		}
		if(MinPrice != null)
		{
			url = url + "&MinPrice="+MinPrice;
		}
		if(MaxPrice != null)
		{
			url = url + "&MaxPrice="+MaxPrice;
		}
		return url;
	}
}
